import request from '@/utils/request'
import apiArr from '@/kaowu_api'

export function examList(params) {
  return request({
    url: apiArr.examList,
    method: 'get',
    params
  })
}
export function examAdd(data) {
  return request({
    url: apiArr.examAdd,
    method: 'post',
    data
  })
}
export function examEdit(params, method = 'post') {
  if (method == 'post') {
    return request({
      url: apiArr.examEdit,
      method,
      data: params
    })
  } else {
    return request({
      url: apiArr.examEdit,
      method,
      params
    })
  }
}

export function examDetail(data) {
  return request({
    url: apiArr.examDetail,
    method: 'post',
    data
  })
}


export function examDelete(data) {
  return request({
    url: apiArr.examDelete,
    method: 'post',
    data
  })
}
export function examModifyState(data) {
  return request({
    url: apiArr.examModifyState,
    method: 'post',
    data
  })
}

export function examRoomAdd(data) {
  return request({
    url: apiArr.examRoomAdd,
    method: 'post',
    data
  })
}

export function examRoomList(data) {
  return request({
    url: apiArr.examRoomList,
    method: 'post',
    data
  })
}

export function examTopicAdd(data) {
  return request({
    url: apiArr.examTopicAdd,
    method: 'post',
    data
  })
}

export function examTopicList(data) {
  return request({
    url: apiArr.examTopicList,
    method: 'post',
    data
  })
}

export function examItemInfo(data) {
  return request({
    url: apiArr.examItemInfo,
    method: 'post',
    data
  })
}

export function examInfoDetail(data) {
  return request({
    url: apiArr.examInfoDetail,
    method: 'post',
    data
  })
}

export function examGenerateCert(data) {
  return request({
    url: apiArr.examGenerateCert,
    method: 'post',
    data
  })
}

export function examUserList(data) {
  return request({
    url: apiArr.examUserList,
    method: 'post',
    data
  })
}

export function examUserInfo(data) {
  return request({
    url: apiArr.examUserInfo,
    method: 'post',
    data
  })
}
export function updateUserInfo(data) {
  return request({
    url: apiArr.updateUserInfo,
    method: 'post',
    data
  })
}


export function doReview(data) {
  return request({
    url: apiArr.doReview,
    method: 'post',
    data
  })
}


export function reviewList(data) {
  return request({
    url: apiArr.reviewList,
    method: 'post',
    data
  })
}

export function changCiList(data) {
  return request({
    url: apiArr.changCiList,
    method: 'post',
    data
  })
}









